<?php
/**
 * Created by PhpStorm.
 * User: mr2longly <mr2longly@gmail.com>
 * Date: 8/13/16
 * Time: 12:26
 */

namespace Dataapi\Controller;


use Think\Controller;

class ReportDataController extends Controller
{
    public function index()
    {
        echo '控制台应用模块,可以写一些cron,task,或异步的queue';
    }
    public function __construct()
    {
        parent::__construct();
        if($_POST==null) {
            return;
        }
    }

    function intodb() {

        $sql = "SELECT * FROM  `lhp_report` ";
        $result = M()->query($sql);
        print_r($result);
    }
}
